package cn.shopping.common.manager;



/**
 * 描述:
 *
 * @author Zhanggq
 * @date 2019/4/4 14:36
 */

public interface DOChecker {


    public static final DOChecker DEFAULT_CHECKER=new DOChecker() {
        @Override
        public void checkWhenAdd(Object dbo) {

        }

        @Override
        public void checkWhenModify(Object dbo) {

        }

        @Override
        public void checkWhenRemove(Object id) {

        }
    };


    /**
     * @param dbo
     */
    public void checkWhenAdd(Object dbo);

    /**
     * @param dbo
     */
    public void checkWhenModify(Object dbo);


    /**
     * @param id
     */
    public void checkWhenRemove(Object id);
}
